{extend name="base/index"/}

{block name="page_location"}
<div class="row">
	<div class="col-12">
		<div class="page-title-box">
			<div class="page-title-right">
				<ol class="breadcrumb m-0">
					<li class="breadcrumb-item"><a href="{:url('index/index')}">管理中心</a></li>
					<li class="breadcrumb-item active"><i class="iconfont icon-angle-right"></i>网站说明书管理</li>
				</ol>
			</div>
			<h4 class="page-title">
				{eq name="act" value="edit"}
				文档修改说明书
				{else/}
				发布说明书
				{/eq}
			</h4>
		</div>
	</div>
</div>
{/block}
{block name="body"}
<div class="row" id="manual_page">
	<div class="col-12">
		<div class="card">
			<div class="card-body">
				<form action="#" class="form-horizontal" id="manual_edit_frm" method="post">
					<input type="hidden" name="id" value="{$doc_id}" />
					<div class="form-group row mb-1">
						<label class="col-3 col-form-label">说明书标题:</label>
						<div class="col-5">
							<input name="title" value="" type="text" placeholder="" class="form-control ipt_check" data-type="string" data-len="1-200" nullmsg="说明书标题不能为空" errormsg="说明书标题长度为1-200"/>
						</div>
					</div>
					<div class="form-group row mb-1">
						<label class="col-3 col-form-label">说明书详细内容：</label>
						<div class="col-8">
							<textarea id="content" name="body"></textarea>
						    
						</div>
					</div>
					<div class="form-group row mb-1">
						<label class="col-3 col-form-label"></label>
						<div class="col-8">
							<button type="button" class="btn btn-primary Fast_Form_Post" attr-frm="#manual_edit_frm" attr-callback="back" attr-model="manual" attr-active="save_manual"><i class="icon-ok"></i> 保存</button>
						</div>
					</div>					
				</form>				
			</div>
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script src="__PLUGIN__/ueditor/ueditor.config.js" type="text/javascript" ></script>
<script src="__PLUGIN__/ueditor/ueditor.all.min.js" type="text/javascript" ></script>
<script type="text/javascript">
	 UE.getEditor(
		'content', 
		{
			serverUrl: '/static/plugin/ueditor/php/controller.php',
			toolbars:Get_UEditor_Config('single')
		}
	 )
</script>
{/block}
